﻿using SmartPlant.Model.Biz;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace SmartPlant.Model.DbContext
{
    [SugarTable("LOOKUPTABLES")]
    public class Lookuptables
    {
        #region 1
        public List<DropDownListObj> dropDownListObjs = new List<DropDownListObj>();
        #endregion
        /// <summary>
        /// KEY
        ///</summary>
        [SugarColumn(ColumnName = "ID", IsPrimaryKey = true)]
        public decimal Id { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "NAME")]
        public string Name { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "DESCRIPTION")]
        public string Description { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "ENTITY_NUMBER")]
        public decimal? EntityNumber { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "APPSCHEMA")]
        public string Appschema { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "DISPLAYUSAGE")]
        public string Displayusage { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "SORTATTRIBUTENUMBER")]
        public decimal? Sortattributenumber { get; set; }

        #region 1

        /// <summary>
        /// 相当于是codelist的enumeration
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Entities Entity { get; set; }

        #endregion 1
    }
}
